﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WorkTeam.ascx.cs" Inherits="FrameWork.web.Web.UC.WorkTeam" %>
    <div class="sect">
        <div class="sectitle">
            <img onclick="fold(this);" src="../../Image/proj/zd.gif" class="sectifld" alt="" />
            <div class="title">工作组</div><div class="clear"></div></div>
        <div class="secinfo">            
            <table id="tblworkteam" class="tbl" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="caption">
                        设计
                    </td>
                    <td width="30%">
                     <SljaCC:TextBoxLabel ID="tlbDesigner" runat="server" BtnAddOfJsFunc="selectUser1(1);" Description="" IsRequired="true"></SljaCC:TextBoxLabel>
                     <asp:HiddenField runat="server" ID="hdfDesigner" />
                     <asp:HiddenField runat="server" ID="hdfWorkTBLID_Desi" />
                    </td>
                    <td class="caption">
                        备注
                    </td>
                    <td valign="bottom">                     
                        <SljaCC:TextBoxLabel ID="tlbDesignerNote" runat="server" Description="填设计相关要求等"  TextMode="MultiLine"></SljaCC:TextBoxLabel>
                    </td>
                </tr>  
                 <tr>
                    <td class="caption">
                       合约
                    </td>
                    <td width="30%">
                     <SljaCC:TextBoxLabel ID="tlbContractor" runat="server" BtnAddOfJsFunc="selectUser1(2);" Description="" IsRequired="true"></SljaCC:TextBoxLabel>
                    <asp:HiddenField runat="server" ID="hdfContractor" />
                     <asp:HiddenField runat="server" ID="hdfWorkTBLID_Cont" />
                    </td>
                    <td class="caption">
                      备注
                    </td>
                    <td valign="bottom">                     
                        <SljaCC:TextBoxLabel ID="tlbContractorNote" runat="server" Description="填报价注意事项" TextMode="MultiLine"></SljaCC:TextBoxLabel>
                    </td>
                </tr>
                 <tr>
                    <td class="caption">
                       工程助理
                    </td>
                    <td width="30%">
                     <SljaCC:TextBoxLabel ID="tlbFixAssistant" runat="server" BtnAddOfJsFunc="selectUser1(3);" Description="" IsRequired="true"></SljaCC:TextBoxLabel>
                    <asp:HiddenField runat="server" ID="hdfFixAssistant" />
                     <asp:HiddenField runat="server" ID="hdfWorkTBLID_FixAs" />
                    </td>
                    <td class="caption">
                      备注
                    </td>
                    <td valign="bottom">                     
                        <SljaCC:TextBoxLabel ID="tlbFixAssistantNote" runat="server" TextMode="MultiLine"></SljaCC:TextBoxLabel>
                    </td>
                </tr>                                
            </table>
            </div>
    </div>
     <script type="text/javascript">
         function workTeam_Valid() {
             if ($("input[id$=hdfDesigner]", "#tblworkteam").val() == "") {
                 alert("需要选择设计人员");
                 return false;
             }
             if ($("input[id$=hdfContractor]", "#tblworkteam").val() == "") {
                 alert("需要选择合约人员");
                 return false;
             }
             return true;
         }
        function callback(n) {
             //变量：top.coverDivReturnValue是定义在DivCoverWindow.js上的top的传递变量.
             var arr = top.coverDivReturnValue;
             if (n == 1) {
                 $("input[id$=tlbDesigner]", "#tblworkteam").val(arr[0].UserName);
                 $("input[id$=hdfDesigner]", "#tblworkteam").val(arr[0].UserID);
             }else if(n==2) {
                 $("input[id$=tlbContractor]", "#tblworkteam").val(arr[0].UserName);
                 $("input[id$=hdfContractor]", "#tblworkteam").val(arr[0].UserID);
             }
         }
         function selectUser1(n) {
             top.loadwindow("/web/project/SelPage/UserSelect.aspx?onlyone=true&rdm=" + Math.random(), 500, 400, "选择用户", function () { callback.call(window,n); });
         }
    </script>